﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ShopHomeModulesTopImgInfoConfig : EntityTypeConfiguration<ShopHomeModulesTopImgInfo>
    {
        public ShopHomeModulesTopImgInfoConfig()
        {
            ToTable("Himall_ShopHomeModulesTopImg");
            Property(item => item.ImgPath).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Url).HasColumnType("varchar").HasMaxLength(1000);
            HasRequired(x => x.Himall_ShopHomeModules).WithMany(x => x.Himall_ShopHomeModulesTopImg).HasForeignKey(x => x.HomeModuleId);
        }
    }
}
